package xian.woniuxy.be.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import xian.woniuxy.be.entity.ResultVO;
import xian.woniuxy.be.entity.Users;
import xian.woniuxy.be.service.IUsersService;

import java.util.List;

/**
 * @author Gong
 * @time 2022/01/11 15:14:48
 */
@RestController
public class UsersController {
    @Autowired
    private IUsersService usersService;

    @PostMapping("users/findAllInCustomer")
    public ResultVO findAll(){
        List<Users> list = usersService.findAll();
        return ResultVO.success(list);
    }
}
